import React from 'react';
import store from './store';

class App extends React.Component {
    render () {
        return (
            <div>
                <button onClick={() => store.dispatch({ type: 'decrement' })}>-</button>
                <span id="count">{store.getState().count}</span>
                <button onClick={() => store.dispatch({ type: 'increment' })}>+</button>
            </div>
        );
    }
}
export default App;
